package com.hp.service.impl;

import com.hp.mapper.UserRoleMapper;
import com.hp.entity.UserRole;
import com.hp.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserRoleServiceImpl implements UserRoleService {

    @Autowired
    private UserRoleMapper userRoleDao;


    @Override
    public List<UserRole> list(UserRole userRole) {
        return userRoleDao.list(userRole);
    }

    @Override
    public List<UserRole> list2(UserRole userRole) {
        return userRoleDao.list2(userRole);
    }

    @Override
    public int add(UserRole userRole) {
        return userRoleDao.add(userRole);
    }

    @Override
    public int del(Integer id) {
        return userRoleDao.del(id);
    }

    @Override
    public UserRole findById(Integer id) {
        return userRoleDao.findById(id);
    }

    @Override
    public int update(UserRole userRole) {
        return userRoleDao.update(userRole);
    }
}

